package com.wise.boot.content;

import com.wise.framework.foundation.bean.BeanNameGenerator;
import com.wise.framework.web.ControllerWriter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.summerframework.core.base.EnableSummer;
import org.summerframework.core.srv.ClassRewriter;

@ComponentScan(value = {"com.byton", "com.wise"}, nameGenerator = BeanNameGenerator.class)
@SpringBootApplication
@EnableDiscoveryClient
@EnableSummer
public class MicroServiceContentApplication {

	public static void main(String[] args) {
		ClassRewriter.rewrite("com.wise", "com.byton");
		ControllerWriter.scanAndWrite("v1.cms.content","v1.portal.content");
		SpringApplication.run(MicroServiceContentApplication.class, args);
	}
}
